<?php
namespace app\home\validate;
use think\Validate;
use think\Db;
/**
 * 退货单验证器
 */
class Order extends Validate{
  protected $rule = [
    'orderAddr' => 'require',
    'buyPeo' => 'require',
    'email' => 'require',
  ];
  protected $message = [
    'orderAddr.require' => 'required',
    'buyPeo.require' => 'required',
    'email.require' => 'required',
  ];
  protected $scene = [
    'add' => ['buyPeo','email'],
  ];
}